# encoding:utf-8
'''
@author : xaing
@time : 2018/4/18 23:40
@地址 : 广州
@作用 :
@结果 :
'''


p = r'<div id="content">([\s\S]*?)</div>'  # ？启用非贪婪模式
p = r'<dd><a href=\"([^">]+)'
p = r'<h1>([^<h1/>]+)'
p = r"<a class='l_s' href=\'([^']+)"
p = r'img id="img\d\d\d\d" name=\"([^"]+)'
p = r'input name="hdPageCount" type="hidden" id="hdPageCount" value=\"([^"]+)'
p = r'<input name="hdVolID" type="hidden" id="hdVolID" value=\"([^"]+)'
p = r'<input name="hdPageIndex" type="hidden" id="hdPageIndex" value=\"([^"]+)'
p = r'<p><strong><img src="([^"]+\.[gjp][ipn][fpg])"'
p = r'(?<=href=\").+?(?=\")|(?<=href=\').+?(?=\')'

s = '长城得威L-CKC220工业闭式齿轮油170.215kg\\200L'
# p = r'[\u4e00-\u9fa5|，。；？]([\dkg]+)'  # 匹配中文
# p = r'[\u4e00-\u9fa5|，。；？]([\d]+)' # ['170']
p = r'[\u4e00-\u9fa5|，。；？]([\d+\.\d]+)' # ['170.215']